<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
你好，我是项目a
</body>
</html>
<script type="text/javascript" src="/jquery-3.4.1.min.js"></script>

<script>
    $.ajax({
        type: "GET",
        url: "http://localhost:8081/getBInfo",
        dataType: "json",
        success: function(Result) {
            if(Result.code == 200) {
                alert(Result.msg)
            } else {
                alert("垃圾")
            }
        },
        error: function () {
            alert("fail")
        }
    });
</script>